<script setup>
let studentList = [
  { id: 1, name: '张三', score: 68 },
  { id: 2, name: '李四', score: 78 },
  { id: 3, name: '王五', score: 88 }
]
</script>

<template>
  <div class="flex justify-center">
    <table class="text-center">
      <thead>
        <tr>
          <th class="border px-4">序号</th>
          <th class="border px-4">姓名</th>
          <th class="border px-4">成绩</th>
        </tr>
      </thead>
      <tbody>
        <tr v-for="student in studentList" :key="student.id">
          <td class="border">{{ student.id }}</td>
          <td class="border">{{ student.name }}</td>
          <td class="border">{{ student.score }}</td>
        </tr>
      </tbody>
    </table>
  </div>
</template>
